package 代理模式;

import 代理模式.没代理的代码.Girl;

/**
 * @author zyl
 * @Description
 * @since 2024/1/2 17:43
 */

public class Proxy implements IGiveGift{
   private Pursuit pursuit;

    public Proxy(Girl girl) {
        this.pursuit = new Pursuit(girl);
    }

    @Override
    public void giveDolls() {
        this.pursuit.giveDolls();
    }

    @Override
    public void giveFlowers() {
        this.pursuit.giveFlowers();
    }

    @Override
    public void giveChocolate() {
        this.pursuit.giveChocolate();
    }
}
